#define  _CRT_SECURE_NO_WARNINGS
class Solution {
public:
    int findLengthOfLCIS(vector<int>& nums) {
        int len = 1, max_len = 1, size = nums.size();
        for (int i = 1; i < size; i++)
        {
            if (nums[i] > nums[i - 1]) len++;
            else len = 1;
            max_len = max(max_len, len);
        }
        return max_len;
    }
};